package com.central.scheduler.dao.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.central.common.enums.TaskType;
import com.central.common.model.SuperEntity;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import static com.baomidou.mybatisplus.annotation.FieldStrategy.NOT_NULL;

/**
 * @author Tindy
 * @date 2021/11/1
 * @describe
 * process task relation
 */
@Data
@TableName(value = "sch_process_task_relation",autoResultMap = true)
public class ProcessTaskRelation extends SuperEntity {
    /**
     * name
     */
    private String name;

    private TaskType taskType;

    /**
     * process version
     */
    private int processDefinitionVersion;

    /**
     * project code
     */
    private long proId;

    /**
     * process code
     */
    private long processDefinitionCode;

    /**
     * pre task name
     */
    private String preTaskName;

    /**
     * post task name
     */
    private String postTaskName;

    private Boolean isTmp;


    public ProcessTaskRelation() {
    }

    public ProcessTaskRelation(String name,
                               TaskType taskType,
                               int processDefinitionVersion,
                               long proId,
                               long processDefinitionCode,
                               String preTaskName,
                               String postTaskName) {
        this.name = name;
        this.taskType=taskType;
        this.processDefinitionVersion = processDefinitionVersion;
        this.proId = proId;
        this.processDefinitionCode = processDefinitionCode;
        this.preTaskName = preTaskName;
        this.postTaskName = postTaskName;
    }
}
